<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="${path}/css/public.css" />
	<link rel="stylesheet"
		  href="${path}/css/themes/base/jquery.ui.all.css">
	<link rel="stylesheet" href="${path}/js/demos.css">

	<script type="text/javascript"
			src="${path}/js/jquery-1.7.2.js"></script>
	<script type="text/javascript"
			src="${path}/js/jquery.ui.core.js"></script>
	<script type="text/javascript"
			src="${path}/js/jquery.ui.widget.js"></script>
	<script type="text/javascript"
			src="${path}/js/jquery.ui.position.js"></script>
	<script type="text/javascript"
			src="${path}/js/jquery.ui.autocomplete.js"></script>
	<script type="text/javascript"
			src="${path}/js/jquery.ui.datepicker.js"></script>
	<script type="text/javascript"
			src="${path}/js/jquery.ui.datepicker-zh-CN.js"></script>
	<script src="${path}/js/jquery.ui.button.js"></script>
	<link rel="stylesheet" href="${path}/css/icons.css">
	<script src="${path}/js/icons.js"></script>


	<title>新增员工
	</title>
</head>
<body>
<!--头部-->
<div class="header">




	<div class="top">
		<div class="top_left">
			<span class="f1">欢迎您：ADMIN</span>
		</div>
		<div class="top_right">
			<a href="../../toIndex.action" class="top_ico0">首页</a>
			<a href="../../initUpdatePassword.action" class="top_ico1">修改密码</a>
			<a href="../../user/initPersonalInfo.action" class="top_ico2">个人信息</a>
			<a href="../../logout.action" class="top_ico3">退出</a>
		</div>
	</div>
	<div class="top2">
		<p class="pro_id">客户关系管理系统  小管版本</p>
	</div>
</div>

<!--主体-->
<table class="main" border="0"
	   style="width: 100%; background-color: #FFFFFF">
	<tr>
		<td width="140" style="vertical-align: top;">
			<div class="main_left">



				<script type="text/javascript" src="${path}/js/jquery.ui.accordion.js"></script>

				<script type="text/javascript">
                    $().ready(function() {
                        $('.menuTitle').click(function() {//添加menuTitle的click事件
                            if ($(this).next().is(":hidden")) {//隐藏判断
                                $('.menu_ul_div').slideUp();//隐藏 */
                                $(this).next().slideDown();//显示
                            } else {
                                if ($(this).next().attr("id") == 'menu_ul_div_1') {

                                    $('.menu_ul_div').slideUp();//隐藏 */
                                    $('#menu_ul_div_2').slideDown();//显示

                                }
                                ;
                                if ($(this).next().attr("id") == 'menu_ul_div_2') {

                                    $('.menu_ul_div').slideUp();//隐藏 */
                                    $('#menu_ul_div_3').slideDown();//显示

                                }
                                ;
                                if ($(this).next().attr("id") == 'menu_ul_div_3') {

                                    $('.menu_ul_div').slideUp();//隐藏 */
                                    $('#menu_ul_div_4').slideDown();//显示

                                }
                                if ($(this).next().attr("id") == 'menu_ul_div_4') {

                                    $('.menu_ul_div').slideUp();//隐藏 */
                                    $('#menu_ul_div_1').slideDown();//显示

                                }
                            }
                        });
                    });
				</script>
				<div class="sidebar">

					<h2 id="menu1" class="menuTitle">客户管理</h2>
					<div class="menu_ul_div" id="menu_ul_div_1"

						 style="display:none;">
						<ul id="menu1_ul" class="menu_ul">
							<li class="menuItem"><a href="../../customer/initConflict.action">客户冲突</a></li>
							<li class="menuItem"><a href="../../customer/initAdd.action">添加客户</a></li>
							<li class="menuItem"><a href="../../customer/initServe.action">服务中签约客户</a></li>
							<li class="menuItem"><a href="../../customer/initNoServe.action">未签约客户</a></li>
							<li class="menuItem"><a href="../../customer/initNoServeFirst.action">未签约-已初试</a></li>
							<li class="menuItem"><a href="../../customer/initNoServeSecond.action">未签约-已复试</a></li>
							<li class="menuItem"><a href="../../customer/getAllSea.action">公海客户</a></li>
							<li class="menuItem"><a href="../../visitRecord/initSearch.action">拜访查询</a></li>
						</ul>
					</div>


					<h2 id="menu2" class="menuTitle">合同管理</h2>
					<div class="menu_ul_div" id="menu_ul_div_2"

						 style="display:none;">
						<ul id="menu2_ul" class="menu_ul">
							<li class="menuItem"><a href="../../contractTemplate/initList.action">合同模版</a></li>
							<li class="menuItem"><a href="../../contract/initAdd.action">新增合同</a></li>
							<li class="menuItem"><a href="../../contract/initContractValid.action">有效合同查询</a></li>
							<li class="menuItem"><a href="../../contract/initContractInvalid.action">无效合同查询</a></li>
							<li class="menuItem"><a href="../../contract/initPaymentReceivable.action">应收款查询</a></li>
							<li class="menuItem"><a href="../../contract/initPaymentReceived.action">到款查询</a></li>
						</ul>
					</div>


					<h2 id="menu3" class="menuTitle">报表管理</h2>
					<div class="menu_ul_div" id="menu_ul_div_3"

						 style="display:none;">
						<ul id="menu3_ul" class="menu_ul">
							<li class="menuItem"><a href="../../report/initReport.action">拜访量报表</a></li>
						</ul>
					</div>


					<h2 id="menu4" class="menuTitle">系统设置</h2>
					<div class="menu_ul_div" id="menu_ul_div_4"
						 style="display:block;"
					>
						<ul id="menu4_ul" class="menu_ul">
							<li class="menuItem"><a href="${path}/system/user/search.action">员工设置</a></li>
							<li class="menuItem"><a href="../../announcement/search.action">公告管理</a></li>
							<li class="menuItem"><a href="../../system/elses.action">其他设置</a></li>
						</ul>
					</div>

				</div>
			</div>
		</td>
		<td style="vertical-align: top;">
			<div class="main_right">


				<script type="text/javascript" src="${path}/js/basic.js"></script>
				<link rel="stylesheet" href="${path}/css/themes/base/jquery.ui.all.css">
				<script src="${path}/js/jquery.ui.core.js"></script>
				<script src="${path}/js/jquery.ui.widget.js"></script>
				<script src="${path}/js/jquery.ui.button.js"></script>
				<script src="${path}/js/icons.js"></script>
				<script type="text/javascript">
                    $(function(){
                        $("#chooseRole").click(function(){
                            var config="resizable:no;center:yes;dialogWidth:500px;dialogHeight:250px;dialogTop:200px;dialogLeft:150px";
                            showModalDialog("${path}/system/user/initRoleList.action" , document ,config);
                        });
                    });

				</script>
				<style type="text/css">
					.mytable{
						width: 60%;
					}
					.mytable td{
						width: 200px;
					}
				</style>

				<body>
				<!-- 中部DIV -->
				<div class="content">
					<div class="pageHead">
						<table>
							<tr>
								<th width="8"><img src="${path}/images/c_l.gif" height="31" width="8"/></th>
								<th align="left" class="title_area">当前位置：客户管理 &gt; 新增员工信息</th>
								<th width="9"><img src="${path}/images/c_r.gif" height="31" width="9"></th>
							</tr>
						</table>
					</div>



					<div class="pageBody">
						<form:form id="add" name="editForm" action="${path}/system/user/addOrUpdate/add" method="post" modelAttribute="user">
							<table class="mytable">
								<tr>
									<th>工号</th>
									<td>
										<form:input type="text" path="empNo" value="" id="add_user_empNo"/>
										<span class="required">*</span>
										<form:errors path="empNo" />
									</td>
								</tr>
								<tr>
									<th>姓名</th>
									<td>
										<form:input type="text" path="realName" value="" id="add_user_realName"/>
										<span class="required">*</span>
										<form:errors path="realName" />
									</td>
								</tr>
								<tr>
									<th>登陆账号</th>
									<td>
										<form:input type="text" path="username" value="" id="add_user_username"/>
										<span class="required">*</span>
										<form:errors path="username" />
									</td>
								</tr>
								<tr>
									<th>账号状态</th>
									<td>
										<input type="radio" name="userValid" id="add_user_validtrue" checked="checked" value="true"/><label for="add_user_validtrue">启用</label>
										<input type="radio" name="userValid" id="add_user_validfalse" value="false"/><label for="add_user_validfalse">禁用</label>

									</td>
								</tr>
								<tr>
									<th>所属部门</th>
									<td>
										<select name="deptId" id="add_user_dept_id">
											<c:forEach items="${departments}" var="department">
												<option value="${department.id}">${department.deptName}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								<tr>
									<th>客户上限</th>
									<td>
										<form:input type="text" path="maxCustomer" value="" id="add_user_maxCustomer"/>
										<span class="required">*</span>
										<form:errors path="maxCustomer" />
									</td>
								</tr>
								<tr>
									<th>性别</th>
									<td>
										<input type="radio" name="userGender" id="add_user_genderMALE" checked="checked" value="MALE"/><label for="add_user_genderMALE">男</label>
										<input type="radio" name="userGender" id="add_user_genderFEMALE" value="FEMALE"/><label for="add_user_genderFEMALE">女</label>

									</td>
								</tr>
								<tr>
									<th>生日</th>
									<td>
										<input type="text" name="birthDate" value="" readonly="readonly" id="add_user_birthDate" class="date"/>
									</td>
								</tr>
								<tr>
									<th>
										<a id="chooseRole" href="#">选择角色</a>
									</th>
									<td>
										<input type="text" path="roleNames" value="" readonly="readonly" id="roleListDisplay"/>
										<form:input type="hidden" path="roleIds" value="" id="roleListHidden"/>
										<span class="required">*</span>
										<form:errors path="roleIds"/>
									</td>
								</tr>
								<tr>
									<th>手机</th>
									<td>
										<input type="text" name="telephone" value="" id="add_user_telephone"/>
									</td>
								</tr>
								<tr>
									<th>备注</th>
									<td>
										<textarea name="remarks" cols="18" rows="4" id="add_user_remarks"></textarea>
									</td>
								</tr>
							</table>

							<div class="buttonBar">
								<button id="btnSave" type="submit">保存</button>
							</div>

						</form:form>

					</div>
				</div>
				</body>

			</div>
		</td>
	</tr>
</table>

<!--尾部-->
<div class="footer">


	<div class="seperator"></div>
	<p>
		<a href="http://www.sztzedu.com">公司主站</a>|
		<a href="#">隐私策略</a>|
		<a href="#">服务条款</a>&nbsp;
		苏州天智教育公司&reg;版权所有 2012-2015
	</p>

</div>
</body>
</html>